<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

// 系统首页
Route::get('/', 'IndexController/index');

// 测试路由
Route::get('test', 'TestController/index');

// 名片生成相关路由
Route::get('card/index', 'CardController/index');
Route::post('card/generateData', 'CardController/generateData');
Route::post('card/generateImage', 'CardController/generateImage');
Route::get('card/viewImage', 'CardController/viewImage');
Route::get('card/viewImage/:filename', 'CardController/viewImage');
Route::get('card/downloadImage/:filename', 'CardController/downloadImage');
Route::get('card/download', 'CardController/downloadImage');

// 部门管理相关路由
Route::get('department/index', 'DepartmentController/index');
Route::get('department/getList', 'DepartmentController/getList');
Route::post('department/add', 'DepartmentController/add');
Route::post('department/update/:id', 'DepartmentController/update');
Route::get('department/delete/:id', 'DepartmentController/delete');
Route::post('department/delete/:id', 'DepartmentController/delete');

// 岗位管理相关路由
Route::get('position/index', 'PositionController/index');
Route::get('position/getList', 'PositionController/getList');
Route::post('position/add', 'PositionController/add');
Route::post('position/update/:id', 'PositionController/update');
Route::get('position/delete/:id', 'PositionController/delete');
Route::post('position/delete/:id', 'PositionController/delete');

// 测试UI组件路由
Route::get('test/ui', 'TestController/ui');